package com.chat.entry.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.chat.entry.enums.ReadStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群未读表
 * </p>
 *
 * @author author
 * @since 2025-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("group_message_unread")
@ApiModel(value="GroupMessageUnread对象", description="群未读表")
public class GroupMessageUnread implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "群聊消息id")
    @TableField("message_id")
    private Integer messageId;

    @ApiModelProperty(value = "接受群消息成员id")
    @TableField("receiver")
    private Integer receiver;

    @ApiModelProperty(value = "(0:未读，1:已读)")
    @TableField("read_status")
    private ReadStatus readStatus;

    @ApiModelProperty(value = "已读时间")
    @TableField("read_time")
    private LocalDateTime readTime;


}
